package com.lhy.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

//用户信息
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {
    private String userId;  //用户账号
    private String username;  //用户名
    private Integer authority;  //权限：manager: 0  user: 1
    private String phone;  //用户电话
    private String password;  //登陆密码
    private String email;  //用户邮箱
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date updateTime; //修改时间
}
